package com.speechb.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ld.lucenex.field.FieldKey;
import com.ld.lucenex.field.LDType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 博客
 * </p>
 *
 * @author llj
 * @since 2021-03-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Blog implements Serializable {

    private static final long serialVersionUID = 1L;
    @FieldKey(type = LDType.StringField)
    private String id;
    @FieldKey(type = LDType.TextField)
    private String title;
    @FieldKey(type = LDType.TextField)
    private String summary;
    @FieldKey(type = LDType.TextField, highlight = true, highlightTag = {"<em>", "</em>"}, highlightNum = 100000)
    private String html_content;

    private String markdown_content;

    private String source;
    @FieldKey(type = LDType.TextField)
    private String uid;

    private String create_time;

    private String update_time;
    @FieldKey(type = LDType.IntPoint)
    private Integer status;

    private Integer scan_count;

    private String tag;
    @FieldKey(type = LDType.IntPoint)
    private Integer type_id;
    List<String> imageUrl;
    String [] tagList;
    @TableField(exist = false)
    String username;
    @TableField(exist = false)
    boolean canEdit = false;
    @FieldKey(type = LDType.TextField)
    private String type_name;
}
